<?php

class DbmTableInfoSchema extends CActiveRecord {
	
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}

	public function tableName() {
		return 'information_schema.TABLES';
	}
	
	public function defaultScope() {
		$dbName = DbmDb::getInstance()->getDbName();
		return array(
			'condition' => "TABLE_SCHEMA = '{$dbName}'",
		);
	}

}

?>